package EX2;

import java.io.*;

public class demo2_1 {
    public static void main(String[] args) throws IOException {
        File f=new File("C:/filea/a.txt");
        InputStream is=new FileInputStream(f);
        int c;
        while ((c= is.read())!=-1){
            System.out.print((char)c);
        }
    }
}
